
package org.soekrat.engine.retrieval.forest;

import org.soekrat.engine.forest.Tree;
import org.soekrat.engine.forest.TreeVisitor;

public final class StampTreeVisitor implements TreeVisitor 
{
  private final String m_stamp;
  
  public StampTreeVisitor(String stamp)
  {
    if (stamp==null)
    {
      throw new NullPointerException("stamp");
    }
    
    m_stamp=stamp;
  }

  public void visit(Tree tree){ tree.setAttribute("stamp", m_stamp); }
  
}
